﻿using System;
using CILADA.TestAssembly;

namespace CILADA.TestAssemblyTwo
{
    class UsingSystemActivator1
    {
        public Animal Slug
        {
            get
            {
                return (Animal)System.Activator.CreateInstance(Type.GetType("CILADA.TestAssemlyTwo.Slug"));
            }
        }
    }

    class UsingSystemActivator2
    {
        public Animal Giraffe
        {
            get
            {
                return (Animal)System.Activator.CreateInstance(Type.GetType("NonExistant.Assembly.Giraffe"));
            }
        }
    }
}
